Skip to content

Instantly share code, notes, and snippets.

@stevenliebregt
stevenliebregt / pyqt5-eventfilter-touch-example.py
Created June 15, 2018 14:52
PyQt5 Example of the eventFilter, and a TouchEvent capture.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
from PyQt5.QtCore import QEvent
from PyQt5.QtCore import Qt
from PyQt5.QtWidgets import QApplication
from PyQt5.QtWidgets import QMainWindow
@Klerith
Klerith / patrones-recursos.md
Created November 19, 2024 14:33
Recursos adicionales - Patrones de diseño
@watzon
watzon / emoji-map.json
Last active July 31, 2026 21:29
Map of emoji names to the emoji's byte sequence
{
"point_left": "\ud83d\udc48",
"mailbox_with_mail": "\ud83d\udcec",
"timer": "\u23f2",
"grinning": "\ud83d\ude00",
"yum": "\ud83d\ude0b",
"strawberry": "\ud83c\udf53",
"ice_skate": "\u26f8",
"middle_finger_tone2": "\ud83d\udd95\ud83c\udffc",
"star_and_crescent": "\u262a",
@jaymollica
jaymollica / README.md
Last active July 31, 2026 21:28
Emojis to Words

Emojis to Words

  1. json encode an emoji to get its surrogate pair
$surrogate_pair = json_encode(🌊);
print $surrogate_pair; //"\ud83c\udf0a"
  1. The surrogate pair is the key in the array, check if the key exists and send back the associated keyword. The $emojis_to_words variable is an array you need to include in your project.
@noelbundick
noelbundick / LICENSE
Last active July 31, 2026 21:26
Exclude WSL installations from Windows Defender realtime protection
MIT License
Copyright (c) 2018 Noel Bundick
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
name explain-diff-html
description Use when the user asks for a rich explanation of a code change, diff, branch, or PR. Produces HTML output.

Explain Diff

Please make me a rich, interactive explanation of the specified code change.

It should have these sections:

@mohanpedala
mohanpedala / bash_strict_mode.md
Last active July 31, 2026 21:16
set -e, -u, -o, -x pipefail explanation
@ossa-ma
ossa-ma / tropes.md
Last active July 31, 2026 21:11
AI Writing Tropes to Avoid — tropes.fyi by ossama.is

AI Writing Tropes to Avoid

Add this file to your AI assistant's system prompt or context to help it avoid common AI writing patterns. Source: tropes.fyi by ossama.is


Word Choice

"Quietly" and Other Magic Adverbs

@mattifestation
mattifestation / ExpandDefenderSig.ps1
Created March 28, 2019 20:17
Decompresses Windows Defender AV signatures for exploration purposes
filter Expand-DefenderAVSignatureDB {
<#
.SYNOPSIS
Decompresses a Windows Defender AV signature database (.VDM file).
.DESCRIPTION
Expand-DefenderAVSignatureDB extracts a Windows Defender AV signature database (.VDM file). This function was developed by reversing mpengine.dll and with the help of Tavis Ormandy and his LoadLibrary project (https://github.com/taviso/loadlibrary). Note: Currently, "scrambled" databases are not supported although, I have yet to encounter a scrambled database. Thus far, all databases I've encountered are zlib-compressed.